package cool.mtc.minghe.data.model.sys.user.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * @author 明河
 */
@Schema(description = "用户详细信息，用于用户登录后获取信息")
@Data
public class UserDetailDTO {

    @Schema(description = "用户ID")
    private Long userId;

    @Schema(description = "昵称")
    private String nickName;

    @Schema(description = "单位ID")
    private Long orgId;

    @Schema(description = "单位名称")
    private String orgName;

    @Schema(description = "权限字符列表，用以判断显示哪些按钮")
    private List<String> permissionList = new ArrayList<>();

    @Schema(description = "用户关联的单位列表")
    private List<UserOrgDTO> orgList = new ArrayList<>();
}
